<?php
    include_once '../OXmlWriter.php';
     
    $elem_child = new OXmlElement('note','',1);
    $elem_child->addChildElement( new OXmlElement('to','Tove') );
    $elem_child->addChildElement( new OXmlElement('from','Jani') );
    $elem_child->addChildElement( new OXmlElement('heading','Reminder') );
    $elem_child->addChildElement( new OXmlElement('body','Don\'t forget me this weekend!') );
    
    $elem_root = new OXmlElement('notes');
    $elem_root->addChildElement($elem_child);
    
    $document = new OXmlWriter();
    $document->setRootElement( $elem_root );
    $document->addComment('Archivo XML de prueba');
    $document->download();
?>